{% extends 'base.html' %}

{% block title %}{% if place %}Subscribe to {{place}} | {% else %}{{block.super}}{% endif %}{% endblock %}

{% block bodytag %}<body id="page_subscribe">{% endblock %}

{% block heading %}
<h1 id="logo"><a href="/"><img src="{{MEDIA_URL}}img/logos/replogo_m.gif" alt="RepSheet" /></a></h1>
{% endblock %}

{% block content %}
{% if place %}
<h1 id="location">{{place}} <a href="/">change address</a></h1>

<form method="post" action="{% url repsheet_subscribe slug %}" id="subscribe_form">
<div>
<p>To get daily email alerts on your elected representatives, we just need your email address.</p>
{{ form.as_p }}
<input type="submit" value="Go" id="submit" />
</div>
</form>
{% else %}
<p class="errors">Sorry, can't find this place.</p>
{% endif %}
{% endblock %}
